package week2;

public class q2 {
    public static void main(String[] args) {

        double pi = 3.14;
        double r1 = 1.2;
        double r2 = 2.5;
        double r3 = 6;
        double a1=pi*r1*r1;
        double a2=pi*r2*r2;
        double a3=pi*r3*r3;
        System.out.println("半径为"+r1+"圆的面积为"+a1);
        System.out.println("半径为"+r2+"圆的面积为"+a2);
        System.out.println("半径为"+r3+"圆的面积为"+a3);
    }
}
